[WIP][DO NOT MERGE] Feat: Making SchedulingBase and DeadmanSwitch ERC-6900 compatible #343
+599
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DeadmanSwitchModule
Purpose
Provides account recovery functionality through a nominated trusted party who can regain control of an account after a period of inactivity, preventing permanent loss of access to funds and data.
Problem Solved: Permanent loss of account access due to lost keys/devices
Solution: Trusted nominee can recover account after configurable inactivity period
Key Features:
Technical Specification
Module Type: Hybrid (Validation + Execution Hook)
Interfaces:
IValidationModule
,IExecutionHookModule
Core Functionality
Configuration Parameters
Installation Data Format
Key Features
Security Features
validAfter
for UserOperation timingSchedulingBaseModule
Purpose
Abstract base contract providing scheduling functionality for time-based recurring transactions, enabling automation of regular payments, DCA strategies, and periodic operations.
Problem Solved: No native support for recurring/scheduled transactions
Solution: Abstract base for building time-based automation modules
Key Features:
Technical Specification
Module Type: Execution (Abstract)
Interfaces:
IExecutionModule
Core Functionality
Configuration Parameters
Order Data Format
Execution Functions
addOrder(uint32 entityId, bytes orderData)
- Creates new scheduled jobtoggleOrder(uint32 entityId, uint256 jobId)
- Enables/disables jobexecuteOrder(uint32 entityId, uint256 jobId)
- Abstract - Must implementgetExecutionConfig(...)
- Returns job configurationValidation Logic
The base module provides comprehensive execution validation:
Module-Specific Security
DeadmanSwitchModule
SchedulingBaseModule